package com.jplus.utils;

import com.jplus.enums.OrderTypeEnum;

import java.text.SimpleDateFormat;
import java.util.Date;

public class OrderCodeUtils {

    public static String makeOrderCode() {
        SimpleDateFormat sm = new SimpleDateFormat("yyyyMMddHHmmssSSS");
        String code = sm.format(new Date());
        return code + AuthCodeUtils.makeAuthCode() + OrderTypeEnum.PLACE_ORDER.getCode();
    }
}
